@ECHO OFF

REM SET_ENV.BAT
REM Define the environment needed to execute the process.
REM Create variables:
REM - JAVA_EXEC : path to the java runtime
REM - ANT_EXEC : path to the ant executable

CLS
ECHO +-----------------------------------------------------------------------------+
ECHO ^|                                                                             ^|
ECHO ^|                 ENVIRONMENT CONFIG                                          ^|
ECHO ^|                                                                             ^|
ECHO +-----------------------------------------------------------------------------+

SET JAVA_HOME=.\Bin\jre
SET JAVA_PATH=%JAVA_HOME%\bin
SET JAVA_EXEC=%JAVA_PATH%\java
SET ANT_HOME=.\Bin\ant
SET ANT_PATH=%ANT_HOME%\bin
SET ANT_EXEC=%ANT_PATH%\ant
SET LIB_PATH=.\Bin\lib
SET PATH=%ANT_PATH%;%PATH%
SET CLASSPATH=%LIB_PATH%\OleLib.jar;%CLASSPATH%

ECHO.
ECHO Testing Java
CALL %JAVA_EXEC% -version

ECHO.
ECHO Testing Ant
CALL %ANT_EXEC% -version

REM Debug :
REM PAUSE